package com.yao.po;

import java.io.Serial;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-12-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shopping_cart")
@ApiModel(value="ShoppingCart对象", description="")
public class ShoppingCart implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String openId;

    private Integer goodsId;

    private String name;

    private String imageUrl;

    private BigDecimal price;

    private Integer count;

    private String blessing;

    private Integer isChecked;//是否选中 0 未选中 1 选中

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


    public ShoppingCart() {
    }


    public ShoppingCart( Integer id, String openId, Integer goodsId, String name, String imageUrl, BigDecimal price, Integer count, String blessing, Integer isChecked, LocalDateTime createTime, LocalDateTime updateTime) {
        this.id = id;
        this.openId = openId;
        this.goodsId = goodsId;
        this.name = name;
        this.imageUrl = imageUrl;
        this.price = price;
        this.count = count;
        this.blessing = blessing;
        this.isChecked = isChecked;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return openId
     */
    public String getOpenId() {
        return openId;
    }

    /**
     * 设置
     * @param openId
     */
    public void setOpenId(String openId) {
        this.openId = openId;
    }

    /**
     * 获取
     * @return goodsId
     */
    public Integer getGoodsId() {
        return goodsId;
    }

    /**
     * 设置
     * @param goodsId
     */
    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return imageUrl
     */
    public String getImageUrl() {
        return imageUrl;
    }

    /**
     * 设置
     * @param imageUrl
     */
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    /**
     * 获取
     * @return price
     */
    public BigDecimal getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    /**
     * 获取
     * @return count
     */
    public Integer getCount() {
        return count;
    }

    /**
     * 设置
     * @param count
     */
    public void setCount(Integer count) {
        this.count = count;
    }

    /**
     * 获取
     * @return blessing
     */
    public String getBlessing() {
        return blessing;
    }

    /**
     * 设置
     * @param blessing
     */
    public void setBlessing(String blessing) {
        this.blessing = blessing;
    }

    /**
     * 获取
     * @return isChecked
     */
    public Integer getIsChecked() {
        return isChecked;
    }

    /**
     * 设置
     * @param isChecked
     */
    public void setIsChecked(Integer isChecked) {
        this.isChecked = isChecked;
    }

    /**
     * 获取
     * @return createTime
     */
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return updateTime
     */
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String toString() {
        return "ShoppingCart{serialVersionUID = " + serialVersionUID + ", id = " + id + ", openId = " + openId + ", goodsId = " + goodsId + ", name = " + name + ", imageUrl = " + imageUrl + ", price = " + price + ", count = " + count + ", blessing = " + blessing + ", isChecked = " + isChecked + ", createTime = " + createTime + ", updateTime = " + updateTime + "}";
    }
}
